<?php
/**
 * User: taodf
 * Date: 17-4-29
 * Time: 下午10:17
 */

namespace Zeus\Routing;

use Zeus\Support\ServiceProvider;

/**
 * Class RouterServiceProvider
 * @package Zeus\Routing
 */
class RouterServiceProvider extends ServiceProvider
{
    protected $provides=[
        "router", Router::class
    ];


    public function register()
    {
        $this->getContainer()->share("router", $router=new Router($this->getContainer()));
        $this->getContainer()->share(Router::class, $router);
    }
}